package com.ruoyi.shop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 收货地址对象 user_address
 * 
 * @author cwc
 * @date 2024-12-13
 */
public class UserAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收获地址id */
    private Integer addressId;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 收货人姓名 */
    @Excel(name = "收货人姓名")
    private String recipientName;

    /** 收货人电话 */
    @Excel(name = "收货人电话")
    private String recipientPhone;

    /** 详细的收获地址信息 */
    private String adressLine;

    /** 是否为默认地址 */
    @Excel(name = "是否为默认地址")
    private Integer isDefault;

    public void setAddressId(Integer addressId) 
    {
        this.addressId = addressId;
    }

    public Integer getAddressId() 
    {
        return addressId;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setRecipientName(String recipientName) 
    {
        this.recipientName = recipientName;
    }

    public String getRecipientName() 
    {
        return recipientName;
    }
    public void setRecipientPhone(String recipientPhone) 
    {
        this.recipientPhone = recipientPhone;
    }

    public String getRecipientPhone() 
    {
        return recipientPhone;
    }
    public void setAdressLine(String adressLine) 
    {
        this.adressLine = adressLine;
    }

    public String getAdressLine() 
    {
        return adressLine;
    }
    public void setIsDefault(Integer isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault() 
    {
        return isDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("addressId", getAddressId())
            .append("userId", getUserId())
            .append("recipientName", getRecipientName())
            .append("recipientPhone", getRecipientPhone())
            .append("adressLine", getAdressLine())
            .append("isDefault", getIsDefault())
            .toString();
    }
}
